<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %>

<%@ page import="javax.portlet.RenderRequest" %>
<%@ page import="javax.portlet.RenderResponse" %>
<%@ page import="javax.portlet.ActionResponse" %>
<%@ page import="javax.portlet.PortletPreferences" %>

<%@ page import="pl.edu.agh.portal.application.utils.PortletsUtils" %>

<%@ page session="false" %>

<portlet:defineObjects/>

<% 
	PortletPreferences preferences = renderRequest.getPreferences();
	String[] menuItems = preferences.getValues(PortletsUtils.USER_MENU_ITEMS, new String[0]);
%>

<form method="post" action="<portlet:actionURL/>">
	<table width="100%">
		<tr align="center">
			<% for (String item : menuItems) { %>
		    	<td align="center">
		    		<input type="image" name="<%= PortletsUtils.USER_MENU_KEY %>" value="<%= item %>" alt="<%= item %>" height="100%" width="100%""/>
		    	</td>
		    <% } %>
	  	</tr>
	</table>
</form>
